<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="ABMUsuario.aspx.cs"
    Inherits="ABMUsuario" %>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <asp:LinkButton ID="linkUsuario" runat="server">traerTodos</asp:LinkButton>
    <br />
    <asp:GridView ID="grdUsuario" runat="server" DataKeyNames="Id" 
        onselectedindexchanged="grdUsuario_SelectedIndexChanged">
        <Columns>
            <asp:CommandField ShowSelectButton="True" />
            <asp:CommandField ShowDeleteButton="True" />
        </Columns>
    </asp:GridView>
    <br />
    <asp:Label ID="lbl" runat="server"></asp:Label>
    <br />
    <asp:LinkButton ID="linkNuevo" runat="server">Nuevo</asp:LinkButton>
    <br />
    <br />
    <table>
        <tr>
            <td>
                Email
            </td>
            <td>
                <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Password
            </td>
            <td>
                <asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Confirme Password</td>
            <td>
                <asp:TextBox ID="txtPasswordConfirmacion" runat="server" TextMode="Password"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
    <asp:LinkButton ID="linkAceptar" runat="server">Aceptar</asp:LinkButton>
            </td>
        </tr>
    </table>
    &nbsp;<br />
    <asp:RegularExpressionValidator id="revEmail" runat="server" 
        ErrorMessage="El Email ingresado es incorrecto." ControlToValidate="txtEmail"
		Display="Dynamic" 
        ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
        Font-Bold="True" ForeColor="Red"></asp:RegularExpressionValidator>
    <asp:CompareValidator ID="cmpPass" runat="server" 
        ControlToCompare="txtPassword" ControlToValidate="txtPasswordConfirmacion" 
        Display="Dynamic" ErrorMessage="Los Passwords no coinciden" Font-Bold="True" 
        ForeColor="Red"></asp:CompareValidator>
    <br />
    <br />
    <br />
    </asp:Content>
